Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breathe keyword #90

Merged
merged 1 commit into from
Feb 16, 2015
Merged

Breathe keyword #90

merged 1 commit into from
Feb 16, 2015

Conversation

kaeluka
Copy link
Contributor

@kaeluka kaeluka commented Feb 16, 2015

The breathe keyword makes an actor "come up for air": it will check
whether any thieves are trying to steal work from an actor and
cooperate (if that is the case). The return type is void.

The test just checks that nothing crashes, as breathe doesn't have
any visible side effects, nor a return value.

The `breathe` keyword makes an actor "come up for air": it will check
whether any thieves are trying to steal work from an actor and
cooperate (if that is the case). The return type is `void`.

The test just checks that nothing crashes, as breathe doesn't have
any visible side effects, nor a return value.
return $ Skip (meta pos)
breathe = do pos <- getPosition
reserved "breathe"
return $ Breathe (meta pos)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative here would be to use the desugarer to convert a VarAccess of breathe to a Breathe node. But that can be a later refactoring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but then you could have variables called breathe and confusion would ensue, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right!

@EliasC
Copy link
Contributor

EliasC commented Feb 16, 2015

Some whitespace removal that added noise to the pull request, but the actual changes look good! Merging

EliasC added a commit that referenced this pull request Feb 16, 2015
@EliasC EliasC merged commit 7eed5fc into parapluu:new-ponyrt Feb 16, 2015
@EliasC EliasC deleted the new-ponyrt branch February 16, 2015 10:47
@kaeluka
Copy link
Contributor Author

kaeluka commented Feb 16, 2015

Some whitespace removal that added noise to the pull request, but the actual changes look good! Merging

Testing the limits :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants